<template>
  <el-card class="box-card">
    <template #header>
      <div class="card-header">
        <a href="#" index="nyt" @click="gonyt()">用户管理</a>
        <a href="#" index="pjt1" @click="gopjt1()">考勤统计</a>
        <a href="#" index="zj" @click="gozj()">信息通知</a>
        <a href="#" index="yyl" @click="goyyl()">设备信息</a>
        <a href="#" index="yyl1" @click="goyyl1()">设备信息更新</a>
        <a href="#" index="mj" @click="gomj()">设备地址管理</a>
        <a href="#" index="zj1" @click="gozj1()">手册管理</a>
        
      </div>
    </template>
    <div>
       <router-view/>
    </div>
  </el-card>
</template>

<script>
export default {
  methods:{
      gonyt(){
        this.$router.replace('/nyt')
      },
      gopjt1(){
        this.$router.replace('/pjt1')
      },
      gozj(){
        this.$router.replace('/zj')
      },
      goyyl(){
        this.$router.replace('/yyl')
      },
      goyyl1(){
        this.$router.replace('/yyl1')
      },
       gomj(){
        this.$router.replace('/mj')
      },
       gozj1(){
        this.$router.replace('/zj1')
      }
    }
 
    
 
  
};
</script>
<style >
.card-header {
  display: flex;
}

.text {
  font-size: 14px;
}

.box-card {
  width: 100%;
  margin: 5px;
  
}
a{
  padding: 0 20px;
}
</style>